import os
from langchain_openai import ChatOpenAI
from dotenv import load_dotenv
load_dotenv()
tongyi_api_key = os.getenv('tongyi_api_key')

text = "大模型的介绍"
llm = ChatOpenAI(
    model="qwen-plus",
    api_key="sk-8b34350b7cc04642b3691feea8096b4c",
    base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
)


res = llm.invoke(text)

print(res.content)